package com.javatip.project.deep_learning.predict.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.javatip.framework.web.domain.BaseEntity;
import java.util.Date;
    
/**
 * 识别表 predict
 * 
 * @author 袁伟
 * @date 2024-07-25
 */
public class Predict extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	/** 识别任务名称 */
	private String predictName;
	/** id */
	private Integer id;
	/** 所选训练任务的id */
	private Integer trainMissionId;
	/** 所选训练任务的名称 */
	private String trainMissionName;
	/** 所识别数据集的id */
	private Integer datasetId;
	/** 所识别数据集名称 */
	private String datasetName;
	/** 识别状态 */
	private String status;
	/** 开始识别时间 */
	private Date beginTime;
	/** 结束识别时间 */
	private Date endTime;
	/** userID */
	private Integer userId;

	private boolean isRunning; // true: 进行中, false: 停止

	private String userName;

	/** 入队时间 */
	private Date timeToQueue;

	public Date getTimeToQueue() {
		return timeToQueue;
	}

	public void setTimeToQueue(Date timeToQueue) {
		this.timeToQueue = timeToQueue;
	}

	public boolean isRunning() {
		return isRunning;
	}

	public void setRunning(boolean running) {
		isRunning = running;
	}

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setPredictName(String predictName)
	{
		this.predictName = predictName;
	}

	public String getPredictName()
	{
		return predictName;
	}
	public void setTrainMissionId(Integer trainMissionId) 
	{
		this.trainMissionId = trainMissionId;
	}

	public Integer getTrainMissionId() 
	{
		return trainMissionId;
	}
	public void setTrainMissionName(String trainMissionName) 
	{
		this.trainMissionName = trainMissionName;
	}

	public String getTrainMissionName() 
	{
		return trainMissionName;
	}
	public void setDatasetId(Integer datasetId) 
	{
		this.datasetId = datasetId;
	}

	public Integer getDatasetId() 
	{
		return datasetId;
	}
	public void setDatasetName(String datasetName) 
	{
		this.datasetName = datasetName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getDatasetName()
	{
		return datasetName;
	}
	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getStatus() 
	{
		return status;
	}
	public void setBeginTime(Date beginTime) 
	{
		this.beginTime = beginTime;
	}

	public Date getBeginTime() 
	{
		return beginTime;
	}
	public void setEndTime(Date endTime) 
	{
		this.endTime = endTime;
	}

	public Date getEndTime() 
	{
		return endTime;
	}
	public void setUserId(Integer userId) 
	{
		this.userId = userId;
	}

	public Integer getUserId() 
	{
		return userId;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
				.append("predictName", getPredictName())
            .append("trainMissionId", getTrainMissionId())
            .append("trainMissionName", getTrainMissionName())
            .append("datasetId", getDatasetId())
            .append("datasetName", getDatasetName())
            .append("status", getStatus())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("userId", getUserId())
				.append("timeToQueue",getTimeToQueue())
				.append("userName",getUserName())
            .toString();
    }
}
